<template>
  <div class="foot">
    <div class="footCon">
      <p><a href="/#/kidsworld/home">首页</a>︱<a @click="goAnchor('Xgbd')" href="/#/kidsworld/Xgbd">新闻中心</a>︱<a @click="goAnchor('xsfc')" href="/#/kidsworld/xsfc">选手风采</a>︱<a @click="goAnchor('sphx')" href="/#/kidsworld/sphx">视频花絮</a>︱<a @click="goAnchor('Hzjg')" href="/#/kidsworld/Hzjg">赞助商</a></p>
      <p>All Copyright Reserved 2018 南京朗睿软件科技有限公司版权所有 苏ICP备18040411号</p>
    </div>
  </div>
</template>
<script>
  export default {
    name: 'mwFoot',
    //数据
    data(){
      return {

      }
    },
    methods:{
      //锚点跳转
      goAnchor:function(navFlag){
          //新闻类的列表页 锚点跳转
          if(navFlag == 'Xgbd'){
              setTimeout(function () {
                  document.getElementById('publicNewsIdFlag').scrollIntoView(true);
              },10)
          }
          //视频类的列表页 锚点跳转
          if(navFlag == 'sphx'){
              setTimeout(function () {
                  document.getElementById('publicVideoIdFlag').scrollIntoView(true);
              },10)
          }
          //图集类的列表页 锚点跳转
          if(navFlag == 'xsfc'){
              setTimeout(function () {
                  document.getElementById('publicKwPicturesIdFlag').scrollIntoView(true);
              },10)
          }
          //合作机构的列表页 锚点跳转
          if(navFlag == 'Hzjg'){
              setTimeout(function () {
                  document.getElementById('publicHzIdFlag').scrollIntoView(true);
              },10)
          }
      },
    },
  }
</script>

<style>

</style>
